Skip to content

chore: Remove HTML column type feature flag and related code#39108

Merged
rahulbarwal merged 1 commit intoreleasefrom
rahulbarwal/remove-htmlcell-flag-in-table-widget-v2
Feb 10, 2025
Merged

chore: Remove HTML column type feature flag and related code#39108
rahulbarwal merged 1 commit intoreleasefrom
rahulbarwal/remove-htmlcell-flag-in-table-widget-v2

Conversation

@rahulbarwal
Copy link
Contributor

@rahulbarwal rahulbarwal commented Feb 7, 2025

Description

It has been a month since we have turned on the flag for table HTML column type and we have not seen any issues.

This PR removes all the feature flags related code from the codebase.

Fixes #Issue Number
or
Fixes Issue URL

Warning

If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation

/ok-to-test tags="@tag.Table"

🔍 Cypress test results

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/13195811365
Commit: 7a0f810
Cypress dashboard.
Tags: @tag.Table
Spec:


Fri, 07 Feb 2025 09:20:10 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • New Features

    • The HTML column type now appears as a consistently available option when configuring table widgets.
  • Refactor

    • The table widget’s architecture has been streamlined for improved modularity and state management, enhancing overall cell rendering.
  • Chore

    • Legacy conditional toggling for the HTML column type has been removed to simplify configuration and standardize behavior.

@rahulbarwal rahulbarwal requested review from AmanAgarwal041, jacquesikot and sneha122 and removed request for ApekshaBhosale and sagar-qa007 February 7, 2025 08:13
@rahulbarwal rahulbarwal self-assigned this Feb 7, 2025
@rahulbarwal rahulbarwal added Table Widget V2 Issues related to Table Widget V2 Query Widgets & IDE Pod All issues related to Query, JS, Eval, Widgets & IDE labels Feb 7, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 7, 2025

Walkthrough

This PR removes the "release_table_html_column_type_enabled" feature flag from multiple code areas. The test setup no longer intercepts this flag, the feature flag definition and its default value are deleted, and the related constant is removed. TableWidgetV2’s legacy HTML column handling is eliminated with updated imports, memoization functions, and method signatures. Additionally, the column type configuration now always displays the HTML option without conditional visibility, and redundant configuration imports are removed.

Changes

File(s) Change Summary
app/client/cypress/e2e/.../HTMLCell_spec.ts Removed feature flag interception in the test suite setup for HTML cell filtering.
app/client/src/ce/entities/FeatureFlag.ts, app/client/src/widgets/TableWidgetV2/constants.ts Deleted the release_table_html_column_type_enabled flag and removed the HTML_COLUMN_TYPE_ENABLED constant.
app/client/src/widgets/TableWidgetV2/widget/index.ts Removed legacy HTML column logic, updated method signatures (getConfig, getDefaults, getMethods), and introduced new memoization functions for state handling.
app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/ColumnType.ts, app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/index.ts Simplified column type configuration by adding an always-visible HTML option, removing feature flag checks, and eliminating redundant configuration imports.

Sequence Diagram(s)

sequenceDiagram
  participant U as User
  participant P as Property Panel
  participant T as TableWidgetV2
  U->>P: Open column type dropdown
  P->>T: Request column configuration
  T-->>P: Return type options including HTML
  U->>P: Select HTML column
  P->>T: Update column configuration
  T-->>P: Render HTML cell without feature flag checks
Loading

Possibly related PRs

Suggested labels

Task, Bug, Widgets Product, High, ok-to-test, Query & JS Pod, Widgets & Accelerators Pod, Integrations Pod General

Suggested reviewers

  • ApekshaBhosale
  • jacquesikot

Poem

In code’s quiet realm, a flag is laid to rest,
HTML now shines, its presence manifest.
Table widgets sing their refactored tune,
Memoized magic gleams under a digital moon.
Clean and bold, the code feels truly blessed!


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3cdb4a3 and 7a0f810.

📒 Files selected for processing (6)
  • app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/columnTypes/HTMLCell_spec.ts (0 hunks)
  • app/client/src/ce/entities/FeatureFlag.ts (0 hunks)
  • app/client/src/widgets/TableWidgetV2/constants.ts (0 hunks)
  • app/client/src/widgets/TableWidgetV2/widget/index.tsx (4 hunks)
  • app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/ColumnType.ts (2 hunks)
  • app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/index.ts (1 hunks)
💤 Files with no reviewable changes (3)
  • app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/columnTypes/HTMLCell_spec.ts
  • app/client/src/ce/entities/FeatureFlag.ts
  • app/client/src/widgets/TableWidgetV2/constants.ts
⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: perform-test / client-build / client-build
  • GitHub Check: perform-test / rts-build / build
  • GitHub Check: perform-test / server-build / server-unit-tests
  • GitHub Check: client-unit-tests / client-unit-tests
  • GitHub Check: client-prettier / prettier-check
  • GitHub Check: client-lint / client-lint
  • GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
  • GitHub Check: client-build / client-build
🔇 Additional comments (6)
app/client/src/widgets/TableWidgetV2/widget/index.tsx (3)

3-28: New React & blueprint icon imports look good.

These imports appear accurate and consistent with usage in the file. No issues detected.


69-69: Unconditional handling of the HTML column type.

Previously, the HTML column type was guarded by a feature flag. Now, HTMLCell is used directly, making the logic simpler and more consistent with other column types.

Also applies to: 2521-2539


225-230: Retaining server-side filtering feature flag references.

This portion references a different feature flag (ALLOW_TABLE_WIDGET_SERVER_SIDE_FILTERING) and does not conflict with HTML removal. The usage is correct.

app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/ColumnType.ts (2)

31-34: Always available HTML option.

Adding the HTML column type to the dropdown ensures it’s selectable without checks, aligning with the removal of the feature flag. Looks good.


89-90: Simplified “hidden” logic.

Removing the feature-flag-based visibility check for HTML columns keeps behavior consistent.

app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data/index.ts (1)

12-12: Removal of “columnTypeWithHtmlConfig”.

Eliminating old imports tied to feature flags reduces complexity. The simplified import of columnTypeConfig is correct.

✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@rahulbarwal rahulbarwal added the ok-to-test Required label for CI label Feb 7, 2025
@github-actions github-actions bot added the skip-changelog Adding this label to a PR prevents it from being listed in the changelog label Feb 7, 2025
@rahulbarwal
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

github-actions bot commented Feb 7, 2025

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/13195819494.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 39108.
recreate: .

@github-actions
Copy link

github-actions bot commented Feb 7, 2025

Deploy-Preview-URL: https://ce-39108.dp.appsmith.com

@rahulbarwal rahulbarwal merged commit 02b89b2 into release Feb 10, 2025
53 of 58 checks passed
@rahulbarwal rahulbarwal deleted the rahulbarwal/remove-htmlcell-flag-in-table-widget-v2 branch February 10, 2025 09:20
github-actions bot pushed a commit to Zeral-Zhang/appsmith that referenced this pull request Feb 12, 2025
…horg#39108)

## Description
It has been a month since we have turned on the flag for table HTML
column type and we have not seen any issues.

This PR removes all the feature flags related code from the codebase.

Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags="@tag.Table"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/13195811365>
> Commit: 7a0f810
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13195811365&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Table`
> Spec:
> <hr>Fri, 07 Feb 2025 09:20:10 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- The HTML column type now appears as a consistently available option
when configuring table widgets.

- **Refactor**
- The table widget’s architecture has been streamlined for improved
modularity and state management, enhancing overall cell rendering.

- **Chore**
- Legacy conditional toggling for the HTML column type has been removed
to simplify configuration and standardize behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@coderabbitai coderabbitai bot mentioned this pull request Mar 17, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Required label for CI Query Widgets & IDE Pod All issues related to Query, JS, Eval, Widgets & IDE skip-changelog Adding this label to a PR prevents it from being listed in the changelog Table Widget V2 Issues related to Table Widget V2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants